laravel login by id

39

get id user login laravel -

use Auth;
$user_id = Auth::user()->id;

make auth in laravel 7 -

composer require laravel/ui "^2.0"

login in laravel with auth -

composer require laravel/ui

Comments

Submit
0 Comments